import { createApp } from "vue";
import App from './App.vue';
import router from "./router";
import pinia from "./store";
import './styles/index.less'
import zhCn from 'element-plus/es/locale/lang/zh-cn'; // 导入中文语言包
import 'element-plus/theme-chalk/dark/css-vars.css'; // 暗黑模式 CSS 变量
import i18n from '../locales'; // 引入 i18n 实例
import ElementPlus from 'element-plus';
import directives from "./directives";

const app = createApp(App)

directives(app);


app.use(i18n)
app.use(router)
app.use(pinia)
app.use(ElementPlus, {
  locale: zhCn,
});
app.mount('#app')
